package com.greenline.push.dal.pushcenter.dataobject;

import java.util.Date;

/**
 * msg_schedule <br/>
 * 2014-10-09<br/>
 * 
 * @author shuai.zuo
 */
public class MsgForSendDO implements Comparable<MsgForSendDO> {

	private Long id;

	private Date gmtCreated;

	private Date gmtModified;
	// 备注
	private String memo;

	private Long receiveId;

	private String content;

	private Long templateId;
	// 定时发送时间
	private Date sendTime;
	// 发送状态
	private Integer status; // 这个字段目前没用
	// 发送类型
	private Integer type;
	// 入队列成功与否,1为成功，0为失败
	private Integer fetchCount;
	private Integer readIndex;// 读取位置.备用
	// 分组id
	private Long classId;

	public Integer getReadIndex() {
		return readIndex;
	}

	public void setReadIndex(Integer readIndex) {
		this.readIndex = readIndex;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Date getGmtCreated() {
		return gmtCreated;
	}

	public void setGmtCreated(Date gmtCreated) {
		this.gmtCreated = gmtCreated;
	}

	public Date getGmtModified() {
		return gmtModified;
	}

	public void setGmtModified(Date gmtModified) {
		this.gmtModified = gmtModified;
	}

	/**
	 * 备注
	 * 
	 * @return memo
	 */
	public String getMemo() {
		return memo;
	}

	/**
	 * 备注
	 * 
	 * @param memo
	 */
	public void setMemo(String memo) {
		this.memo = memo;
	}

	public Long getReceiveId() {
		return receiveId;
	}

	public void setReceiveId(Long receiveId) {
		this.receiveId = receiveId;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Long getTemplateId() {
		return templateId;
	}

	public void setTemplateId(Long templateId) {
		this.templateId = templateId;
	}

	/**
	 * 定时发送时间
	 * 
	 * @return sendTime
	 */
	public Date getSendTime() {
		return sendTime;
	}

	/**
	 * 定时发送时间
	 * 
	 * @param sendTime
	 */
	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

	/**
	 * 发送状态
	 * 
	 * @return status
	 */
	public Integer getStatus() {
		return status;
	}

	/**
	 * 发送状态
	 * 
	 * @param status
	 */
	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getFetchCount() {
		return fetchCount;
	}

	public void setFetchCount(Integer fetchCount) {
		this.fetchCount = fetchCount;
	}

	@Override
	public int compareTo(MsgForSendDO o) {
		// TODO Auto-generated method stub
		return 0;
	}

	public Long getClassId() {
		return classId;
	}

	public void setClassId(Long classId) {
		this.classId = classId;
	}
}